@import "../../ui/src/styles/module/index.scss";
@keyframes showfixedtool {
    from {
        right: -200px;
    }
    to {
        right: 10px;
    }
}

.dy-fixedbar {
    position: fixed;
    right: 0px;
    top: 50%;
    z-index: 18;
    width: 50px;
    text-align: center;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid $borderCol;
    transition: transform .3s ease-in;
    transform: translate(0, -50%);
    animation: showfixedtool .5s ease-out;
    color: $fontCol2;
    padding: 5px 0;
    font-size: 12px;
    box-sizing: border-box;
    >div {
        position: relative;
        cursor: pointer;
        height: 32px;
        padding: 2px 12px;
        >i {
            display: inline;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        >span {
            display: none;
        }
        &:hover {
            >i {
                display: none;
            }
            >span {
                color: $themeCol;
                display: inline;
            }
        }
    }
    %leftItem {
        width: 176px;
        background-color: #fff;
        border: 1px solid $borderCol;
        border-radius: 4px;
        height: auto;
        box-sizing: border-box;
    }
    .l-ft {
        display: block;
        position: absolute;
        right: -400px;
        top: 50%;
        z-index: 1;
        transform: translate(0, -50%);
        padding-right: 10px;
        border-radius: 4px;
        &:hover {
            display: block;
        }
    }
    .kf-list {
        @extend %leftItem;
        border: 0 solid $borderCol;
        @include iCB();
        .title {
            height: 34px;
            line-height: 34px;
            background-color: $themeCol;
            color: #fff;
            font-size: 12px;
            text-align: center;
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
        }
        .list {
            border: 1px solid $borderCol;
            @include iCB();
        }
        .item {
            width: 50%;
            height: 66px;
            padding: 6px 8px;
            box-sizing: border-box;
            color: #ADB6BE;
            float: left;
            text-align: center;
            &:hover {
                background-color: $hoverBgCol;
            }
            .avatar {
                width: 35px;
                height: 35px;
                border-radius: 35px;
                margin-left: 8px;
                display: inline-block;
                img {
                    width: 100%;
                    height: 100%;
                    border-radius: 100%;
                }
            }
        }
    }
    .kf,
    .wx,
    .dl {
        &:hover {
            .l-ft {
                display: block;
                right: 45px;
                transition: right .3s ease;
            }
        }
    }
    .qr-code {
        @extend %leftItem;
        padding: 15px 0;
        img {
            width: 144px;
            height: 144px;
            margin-bottom: 10px;
        }
    }
    .to-top {
        // display: none;
        &.visible {
            display: block;
        }
    }
}